package com.mashibing.mongodb.comment.entity;


import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * <p></p>
 *
 * @author sunzhiqiang23
 * @date 2020-11-13 2:00
 */
@Data
public class Person {
    private Integer id;
    private String name;
    private String phone;
    private String email;
    private String sex;
    private Social social;

    public static void main(String[] args) {
        Person person = new Person();
        person.setId(123);
        person.setName("张三");
        person.setPhone("1511111111");
        person.setEmail("asjdlkadjs@qq.com");
        person.setSex("男");

        Social social = new Social();
        social.setQq("10000");
        social.setWx("45456sdf");
        social.setWeibo("woshiweibp");
        person.setSocial(social);

        System.out.println(JSON.toJSONString(person));

    }
}



